home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 001 / autopro1.arc / AUTOPRCM.DOC < prev   
Text File  |  1986-09-21  |  11KB  |  226 lines

  1. .op
  2. .po 0
  3.                                AUTOPRCM.COM
  4.  
  5.                        Version 2.0 - September 1986
  6.  
  7.         Copyright (C) 1986 - John L. O'Boyle - All Rights Reserved
  8.  
  9.      A  routine  to  generate DOWNLOAD scripts (.CMD  files)  for  ProComm* 
  10. version 2.4 and greater.  
  11.  
  12.      This   program was developed after seeing a version originally written 
  13. by  Keith Peterson.   The one I saw had been modified for use with  PIBTERM 
  14. and RBBS systems only.   While RBBS is nice,  it's not the ONLY Host System 
  15. in  the world!   I've included File Transfer Protocol and Host options  for 
  16. several popular systems.  If the routine is well-received, I'll continue to 
  17. update it as hosts systems (or ProComm) change.
  18.  
  19. FORWARD:
  20.  
  21.      One  of the nicest features of ProComm (this authors opinion only)  is 
  22. it's CMD processor!   CMD files contain, among other things, the keystrokes 
  23. you  would normally have to enter manually for a given task.   The  ProComm 
  24. documentation covers this subject much more completely and  elegantly,  but 
  25. the  "biggies" are the WAITFOR  statement and the TRANSMIT statement.   The 
  26. WAITFOR statement says.."wait until these characters are received from  the 
  27. host".   The  TRANSMIT statement says.."send these characters to the host." 
  28. You can see where, with a little experimentation, you could build a file to 
  29. do  just about anything you wanted,  provided you KNEW what to expect  from 
  30. the host.
  31.  
  32.      CMD  files can be built with any editor or word-processor.   Many  BBS 
  33. systems  offer ProComm CMD file examples that will completely automate  the 
  34. logon sequence for their particular system.   These need only be downloaded 
  35. and modified for your individual use,  ie;  change the sample-name to  YOUR 
  36. name, etc.
  37.  
  38.      CMD  files can be executed directly from the DOS command line when you 
  39. execute ProComm.   (Again,  please refer to the documentation that Tom  and 
  40. Bruce  provide.) Using this feature,  it's possible to execute ONE DOS com-
  41. mand  which will invoke ProComm,  execute a CMD file which will logon to  a 
  42. given host, go directly to the <F>iles section, download a list of the most 
  43. recent file additions,  logoff the host system,  disconnect the phone line, 
  44. print the downloaded list,  and exit ProComm.   (I do it all the time...and 
  45. by using the TEF program, I do it in the middle of the night when the rates 
  46. are lower!)
  47.  
  48.      If  you haven't yet discovered the CMD feature of ProComm,  maybe  AU-
  49. TOPRCM will help you get started!
  50.  
  51. OPERATIONAL CONSIDERATIONS:
  52.  
  53.      This  program may be run from WITHIN ProComm,  to produce an immediate 
  54. ".CMD" file for file transfers.   I've substituted it's name for the Editor 
  55. option   in   my PROCOMM.PRM.   While on-line to a system,  the  ALT-A  key 
  56. sequence initiates the program.   Of course it can be run stand-alone  any-
  57. time!
  58.  
  59.      I  suggest that users run the program a few times to  become  familiar 
  60. with  the  files  produced.   (AUTOPRCM produces ONE output file  per  run, 
  61. called  "DOWNLOAD.CMD")  The .CMD will be activated  at  different  prompts 
  62. depending on the host system.   Once you know what the FIRST command in the 
  63. file  does,  you'll  only have to get to the requisite prompt on  the  host 
  64. system and trigger the .CMD file via ProComms' ALT-F5 key sequence.
  65.  
  66.      It's recommended that .CMD files,  created via AUTOPRCM, NOT be run in 
  67. an  unattended mode!   A misspelling of a file name and/or changes in  host 
  68. prompts may cause the .CMD to WAIT on an unexpected prompt.  If a .CMD file 
  69. hangs, the ESC key will return you to manual control.
  70.  
  71.      It's also recommended that you have a copy of the host download direc-
  72. tory handy when you create your .CMD file,  or at least good clear notes if 
  73. you're running the program dynamically.   Scan the host directories for the 
  74. files you want,  make a list of those files,  and USE the list when you are 
  75. running AUTOPRCM.
  76.  
  77.  
  78. MINIMAL NOTES ON SUPPORTED HOSTS:
  79.  
  80. RBBS - Currently only provides Xmodem protocol.  (ASCII was not included in 
  81. AUTOPRCM  since most useful files are not stored in that form.) Since  RBBS 
  82. allows the download command,  the file name,  and the protocol option to be 
  83. specified via a single string,  (ie;  "D;ANYFILE.BAS;X") the "DOWNLOAD.CMD" 
  84. file begins with this command.
  85.  
  86. IBBS - The above notes from RBBS apply here also.
  87.  
  88. Source  IBMSIG  - The  DOWNLOAD.CMD begins from a MAIN SYSTEM  PROMPT  ">", 
  89. external to the IBMSIG!
  90.  
  91. PC-Board  - The  transfer protocol you use from a PC-Board system  is  con-
  92. tained in your PC-Board user profile.   Be certain that the one you  choose 
  93. for  AUTOPRCM matches that used in the PC-Board system you  contact.   This 
  94. .CMD starts from the "Enter File Name" prompt.
  95.  
  96. EXEC-PC - Download via Kermit,  Xmodem and Ymodem.  Expects to find prompts 
  97. generated by the e<X>pert Mode.
  98.  
  99. FIDO  - Prompts  and  protocols for FIDO systems are in a  state  of  flux.  
  100. AUTOPRCM supports Xmodem,  Kermit,  Telink,  and Modem7.   This .CMD starts 
  101. from the "Enter File Name" prompt.
  102.  
  103. PC-HOST    - These systems do not use filenames for security  reasons.   Files 
  104. are selected via number from a directory list.   AUTOPRCM will BEGIN with a 
  105. directory change command,  and continue from there.   For Kermit and Ymodem 
  106. Batch, only the Dir # and File # must be specified.  For Xmodem amd Ymodem, 
  107. an additional file name is required.
  108.  
  109.     CRC-16 verification will be always be utilized where available.
  110.  
  111. CAVEAT:
  112.  
  113. The  various  host  system prompts that are produced in  AUTOPRCM  for  the 
  114. WAITFOR  command were accurate as of this release!   I have NO control over 
  115. these  prompts  if they have been changed by a given Sysop for his  or  her 
  116. particular software.   Should you discover that a system prompt has changed 
  117. (and  it MUST be for the generic system,  ie;  ALL RBBS systems),  I'll  be 
  118. happy to modify the code if you let me know what's changed.  Notes, sugges-
  119. tions,  or  comments on AUTOPRCM can be left on the PConnecticut BBS  (203) 
  120. 521-1991  (1200/2400 only).   The LATEST version of AUTOPRCM.COM can ALWAYS 
  121. be   found  on that system,   the Datastorm Technologies System,   and  the 
  122. IBMSIG on  The Source.
  123.  
  124.     To change AUTOPRCM default values, see the section on Auto-patch.     
  125.  
  126. BATCH MODE OPERATION:
  127.      AUTOPRCM  batch-mode was the result of a (what I first thought was  an 
  128. unusual)  user request.   I initially didn't see the advantage to be gained 
  129. in using .BAT files to do ALL the work.   I now LIKE the idea of being able 
  130. to use a "list of new files" for example from RBBS, and just plug that file 
  131. into the AUTOPRCM.DAT file.   Saves having to re-key (and possible mis-key) 
  132. the file names!
  133.  
  134. Basically...
  135.      AUTOPRCM LOOKS for a file named "AUTOPRCM.DAT".   If it finds  it,  it 
  136. operates  in  "batch" or "semi-automatic" (discussed later) mode.   In  the 
  137. absence of AUTOPRCM.DAT, the program operates as originally designed.
  138.  
  139.      The particulars are...  You ALWAYS get Auto-logoff.  If the FIRST line 
  140. of AUTOMENU.DAT is NOT a PATHSPEC, the default is used.  The SECOND line of 
  141. AUTOPRCM.DAT  (or the first if the path is missing) MUST be a system  name, 
  142. Source,  CServe, TComm, etc.  It's not case-sensitive, and only scans  four 
  143. characters, so you don't even have to spell it all the way out.
  144.  
  145.      The third line (or second..see above) is the Transfer  Protocol.  Same 
  146. thing  here.  Only scans four characters and either upper or lower case  is 
  147. fine.   Subsequent  lines are file names.   AUTOPRCM  extracts to the FIRST 
  148. blank,  so  it's  possible  to leave the descriptions in the  line  if  you 
  149. prefer.   (I  did that with the RBBS listing.)  That's about  it.   There's 
  150. almost NO error checking.  If a filespec length is bad, it STAYS that way.
  151.  
  152. SEMI-AUTOMATIC MODE:
  153.      Turns  out  that after the coding for the batch-mode was  complete,  I 
  154. ended up with a semi-automatic mode without doing any further work.
  155.  
  156.      If  AUTOPRCM.DAT exists,  AUTOPRCM will look at  it!   Straight  ASCII 
  157. file.   Nothing special.   The FIRST thing AUTOPRCM expects to see is a new 
  158. directory specification.   As in..."G:\THISISIT\".   Turns out though, that 
  159. if it's NOT there (as the first record of the file),  AUTOPRCM will use the 
  160. hard-coded  directory  and NOT give you an opportunity to change it on  the 
  161. fly!   The  SECOND line of AUTOPRCM.DAT (or the FIRST,  if the path  wasn't 
  162. specified) MUST be a host system name.   Again, it can be mispelled to some 
  163. degree,  since  AUTOPRCM only checks three or four significant  characters.  
  164. Any further lines will cause AUTOPRCM to operate in batch-mode.  
  165.  
  166.      Thereafter,  AUTOPRCM operates in manual mode, but you've saved having 
  167. to enter the PATH and/or the host system name.  
  168.  
  169.  
  170. AUTO-PATCH:
  171.      Some  defaults in AUTOPRCM can be changed via the auto-patch  feature.  
  172. These changes will remain in effect until a subsequent auto-patch operation 
  173. is performed.
  174.  
  175.      With NO AUTOPRCM.DAT file around, execute AUTOPRCM.  WHILE the logo is 
  176. painting, hit the F1 key.  You'll see another selection which allows you to 
  177. change the default path,   optionally skip the path prompt in future execu-
  178. tions,  and  decide  if AUTOPRCM.DAT should be  deleted  during  batch-mode 
  179. operation.   AUTOPRCM  will modify itself and exit.   If you don't like the 
  180. way it works, do it over again!  The only restriction is that AUTOPRCM MUST 
  181. be in the current directory.
  182.  
  183. That's it!
  184.  
  185. I'd  like  to  take a minute here to thank two  Mikes,  Todd  and  Callahan  
  186. respectively,  (of The Source IBMSIG) for  their considerable input to, and 
  187. relentless  testing of,  this program.   They provided both the support and 
  188. motivation necessary for me to finish it co-incidental with the release  of 
  189. ProComm 2.4.
  190.  
  191. AUTOPRCM  is distributed on the SHAREWARE concept and is NOT Public  Domain 
  192. Code.  
  193.           This program  is  copyright  (C)  1986,  by John L.  O'Boyle. All  
  194. rights reserved.   Non-registered users are granted  a limited  license  to 
  195. use this  product on a trial  basis,  and to copy the program for trial use 
  196. by others subject to the following limitations:
  197.  
  198. The program is distributed in unmodified form, complete with documentation.
  199.  
  200. No fee, charge or  other consideration  is requested or accepted.
  201.  
  202. If  you intend to  use  AUTOPRCM on a  regular  basis,  please register and  
  203. show your support for the author.    Commercial, business  or  governmental  
  204. use  by  non-registered users is prohibited.
  205.  
  206.      Registrations, and the associated $5.00 fee should be mailed to:
  207.  
  208.            John L .O'Boyle PO Box 10596 West Hartford, CT 06110
  209.  
  210. Since this code is useless without PROCOMM,  please be certain that  you've 
  211. also  supported  THAT  product via registration!   If it gets to  a  choice 
  212. between me and them, please send THEM your money first!
  213.  
  214.      The usual disclaimer applies to AUTOPRCM.   NO WARRANTIES EXPRESSED OR 
  215. IMPLIED!
  216.  
  217.  
  218. * ProComm is a trademark of Datastorm Technologies, Inc.
  219.  
  220.  
  221. V2.4 Copyright 1985, 1986 Datastorm Technologies, Bruce Barkelew & Tom Smith
  222.  
  223.       Datastorm Technologies, Inc.   P.O. Box 1471 Columbia, MO 65205
  224.  
  225.   ProComm support BBS (314) 449-9401 23 hrs per day, 4:00 - 3:00 am CST.
  226.